home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
-archivi
/
-recent2
/
amicad_2.00.lha
/
AmiCAD
/
ARexx
/
Souligner.AmiCAD
< prev
next >
Wrap
Text File
|
1998-09-17
|
828b
|
40 lines
/* Soulignement d'un ou plusieurs textes */
/* $VER: Souligner 1.00 (© R.Florac, 17 septembre 1998 */
options results
signal on error
signal on syntax
objets=0
'SAVEALL(-1):FIRSTSEL'; i=result
do while i>0
objets = objets + souligner(i)
'NEXTSEL('i')'; i=result
end
if objets=0 then do
'PICKOBJ("Sélectionnez le texte à souligner")'
i=result
if i>0 then call souligner(i)
end
exit
souligner: procedure
parse arg i
'TYPE(O__='i')'; type=result
if type = 4 | type = 5 | type = 6 then do
'DRAW(COL(O__),LINE(O__)+1,COL(O__)+WIDTH(O__)+1,LINE(O__)+1)'
return 1
end
return 0
/* Traitement des erreurs, interruption du programme */
syntax:
erreur=RC
'MESSAGE("Erreur de syntaxe"+CHR(10)+"en ligne 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
exit
error:
'MESSAGE("Erreur en ligne 'SIGL'")'
exit